package BinaryTree;

public class Text {
    public static void main(String[] args) {
        MyBinaryTree myBinaryTree = new MyBinaryTree(new MyBinaryTree(new MyBinaryTree(4),2,null),
                                                        1,
                                                    new MyBinaryTree(new MyBinaryTree(5),3,new MyBinaryTree(6)));


        myBinaryTree.preTraversalRecursion(myBinaryTree);
        System.out.println();
        myBinaryTree.preTraversal(myBinaryTree);


        myBinaryTree.middleTraversalRecursion(myBinaryTree);
        System.out.println();
        myBinaryTree.middleTraversal(myBinaryTree);

        myBinaryTree.postTraversalRecursion(myBinaryTree);
        System.out.println();
        myBinaryTree.postTraversal(myBinaryTree);

    }
}
